extends mixins/_layout

block content
    body
        #wrapper
            //- 顶部导航
            include mixins/_header
            +header(navigator, 'editor')
            
            //- editor
            #editor
                #ueditor

            include mixins/_post
            +post
            
            include mixins/_footer
            +footer
        script(src='/ueditor/ueditor.config.js')
        script(src='/ueditor/ueditor.all.min.js')
        script(src='/ueditor/lang/zh-cn/zh-cn.js')
        script(src="/js/laydate.js")
        script(src="/js/base.js")
        script.
            window.addEventListener('DOMContentLoaded',function(){
                //实例化编辑器
                var ue = UE.getEditor('ueditor');
                function getContent() {
                    var arr = [];
                    arr.push("使用editor.getContent()方法可以获得编辑器的内容");
                    arr.push("内容为：");
                    arr.push(UE.getEditor('editor').getContent());
                    alert(arr.join("\n"));
                }
                //提交表单
                kblog.postArticle({
                    'html' : true
                });
            });
            